File
An object of class File contains the data for a Scriptable Text Editor document. When a file object is opened, a corresponding document object is created.
(Only open documents are Scriptable Text Editor document objects.) When
a document object is saved, the data for the document is saved in the corresponding file object, which is represented by a Scriptable Text Editor document icon on the desktop.PROPERTIES
Name
- The name of the file.
Class: String of the form"Disk:Folder1:Folder2:...:Filename"
(see "Notes")
Modifiable? NoELEMENT CLASSES
NoneCOMMANDS HANDLED
Open, PrintDEFAULT VALUE CLASS RETURNED
NoneEXAMPLE
tell application "Scriptable Text Editor" print file "MyDisk:Status Reports:Status - 11/12/92"end tellNOTES
To specify the name of a file, use a string of the form"Disk:Folder1:Folder2:
; for details, see "References to Files," which begins on page 143. You can also specify a string with only a filename ("Filename"). In this case, AppleScript attempts to find the file in the current directory.
...:Filename"